package com.shanyin.framework.eureka.main;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer
//@EnableWebSecurity
public class Application {

	static Logger logger =LoggerFactory.getLogger(Application.class);
	
	//启动一个服务注册中心的方式很简单，就是在Spring Boot的入口类上添加一个@EnableEurekaServer注解
	public static void main(String[] args) {
		logger.info("==========>【eureka】注册中心-准备启动..."); 
		SpringApplication.run(Application.class, args);
		logger.info("==========>【eureka】注册中心-启动完毕...");
	}
}
